﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for MemberBUS
/// </summary>
public class MemberBUS
{
    MemberDAL memDAL = new MemberDAL();
	public MemberBUS()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public DataTable returnAllMember() {
        return memDAL.getAllMember();
    }

    public bool updateMemberStatus(string memID) {
        return memDAL.updateMemberStatus(memID);
    }
    public bool updatePass(string memID, string pass)
    {
        return memDAL.updatePass(memID,pass);
    }
    public DataTable isvalidLogin(string user, string pass)
    {
        return memDAL.isValidLogin(user, pass);
    }

    public DataTable checkEmail(string email) {
        return memDAL.checkEmail(email);
    }
    public DataTable checkUser(string user)
    {
        return memDAL.checkUser(user);
    }
    public DataTable checkID(string id)
    {
        return memDAL.checkID(id);
    }

    public bool ForgetPass(string email) {
        return memDAL.ForgetPass(email);
    }

    public bool insertMember(string id,string fName, DateTime Bod,string gender, string phone, string address, string mail, string user, string pass) {
        return memDAL.insertMember(id,fName,Bod,gender,phone,address,mail,user,pass);

    }

    public bool updateMember(string id, string fName, DateTime Bod, string gender, string phone, string address, string mail) {
        return memDAL.updateMember(id,fName,Bod,gender,phone,address,mail);
    }
}